package com.dhp.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RateLimit {

    /**
     * 限流的key
     * @return
     */
    String key();

    /**
     * 评率
     * @return
     */
    long value();

    /**
     * 时间
     * @return
     */
    long duration();
}
